package org.usfirst.frc;

import edu.wpi.first.wpilibj.*;
import java.util.Timer;
import java.util.TimerTask;

public class GRITSBotDeployable extends RobotBase 
{
public Timer timer;
public TimerTask timerTask;

/**
A method which runs itself for 15 seconds, assuming full control of the robot
attempting to score a yellow tube onto one of the nearby racks.
**/
public void autonomous()
{
timerTask = new TimerTask()
    {
    public void run() 
        {
        }
    }; 
timer.schedule(timerTask, 0, 15000);
}  

public void startCompetition() 
{
    IOThread io = new IOThread();
    CompressorThread compressor = new CompressorThread();
    Scheduleable[] threads = new Scheduleable[3];
    threads[0] = new Drive();
    threads[1] = new Arm();
    threads[2] = new Manipulator();
	//autonomous();
	
    while(true)
		{
        for(int i = 0; i < threads.length; i++){
            Watchdog.getInstance().feed();
            threads[i].run();
        }
    }
}
}
